﻿namespace Common.Model
{
    public partial class SessionModel
    {
        /// <summary>
        /// 本会话ID
        /// </summary>
        public long ID { get; set; } = 0;

        /// <summary>
        /// 会话类型  Directory‌:文件夹  SessionRdpClient:远程Rdp会话
        /// </summary>
        public SessionType SessionType { get; set; } = 0;

        /// <summary>
        /// 会话名称
        /// </summary>
        public string Name { get; set; } = "";

        /// <summary>
        /// 节点其它数据
        /// </summary>
        public object Data { get; set; } = null;

        /// <summary>
        /// 子会话
        /// </summary>
        public List<SessionModel> ChildSessionList { get; set; } = new List<SessionModel>();

        public SessionModel(SessionType sessionType)
        { 
            SessionType = sessionType;
        }

    }

    /// <summary>
    /// 会话类型
    /// </summary>
    public enum SessionType
    { 
        Directory‌ = 1,//文件夹
        SessionRdpClient = 2,//远程Rdp会话
    }
}
